/**
 	Date handler class
 */
package nrb.utils
{
	import mx.formatters.DateFormatter;
	import mx.controls.Alert;
	
	/**
	 	Type: Class
	 	@Params:none
	 	@return:none
	 	Desc: Class for Date Handler
	 */
    public class DateHandler {
    	
    	private var d:Date;
    	private var formatter:DateFormatter;
		
       	public function DateHandler(){
       		d = new Date();
       		formatter = new DateFormatter();
       	}
       	
       	public function get_full_date(format:String=null): String {
       		return format_date(format, new Date());
       	} 
       	
       	public function format_date(format:String, date:Object): String {
       		var format_date:String=  '';
       		formatter.formatString = format;
        	format_date = formatter.format(date);
        	return format_date;
       	}
       	
       
       
       

		
		
	}
}